var express = require('express');
var router = express.Router();
var { regValidator } = require('../middleware/register');
var { encryption } = require('../middleware/encrypt-password');
const { register } = require('../controller/register');

router.post('/', [regValidator, encryption], register);

module.exports = router;
